<?php

namespace app\api\validate;

use think\Validate;

class Regvalidate extends Validate
{
   
	protected $rule = [

        'username'=>'require|mobile|unique.username',
        'password'=>'require',
        'code'=> 'require',
    ];
    
    
    protected $message = [

        'username.require'=>'用户名不能为空',
        'password.require'=>'密码不能为空',
        'username.mobile'=>'手机号码格式错误',
        'username.unique'=>'手机号码已经存在',
        'code'=>'验证码必须填',
    ];
}
